# from selenium import webdriver
import time
# driver = webdriver.Chrome()
# time.sleep(3)
# driver.quit()
# from selenium.webdriver.common.by import By
#
# driver = webdriver.Chrome()
# driver.get('https://www.so.com/')
# kw = driver.find_element(By.ID, 'input')
# kw.send_keys('python自动化测试')
# su = driver.find_element(By.ID, 'search-button')
# su.click()
# time.sleep(3)
# print(driver.title)
# if 'python' in driver.title:
#     print('找到了')
# else:
#     print('没找到')
# time.sleep(3)
# driver.quit()

# from selenium import webdriver #
# import time
#
# from selenium.webdriver.common.by import By
#
#
# class Testcase:
#     def __init__(self):
#         self.driver = webdriver.Chrome()
#     def get_so(self):
#         self.driver.get("https://www.so.com/")
#         self.driver.find_element(By.ID, 'input').send_keys('测试基础')
#         self.driver.find_element(By.ID, 'search-button').click()
#         time.sleep(2)
#         print(self.driver.title)
#         if '测试' in self.driver.title:
#             print('测试成功')
#         else:
#             print('测试失败')
#
#     def quit(self):
#         self.driver.quit()
# if __name__ == '__main__':
#     case存放测试用例 = Testcase()
#     case存放测试用例.get_so()
#     case存放测试用例.quit()












